import { createStore } from "vuex";

const store = createStore({
    state() {
        return {
            age: 30
        }
    },
    getters: {
        gettersAge(state) {
            return state.age + 8
        }
    },
    mutations: {
        addAge(state, data) {
            state.age += data
        }
    }
})

export default store
